<{include file="fenzhan:common/header.html"}>
<div class="page-title">
	<table width="100%" align="center" cellpadding="0" cellspacing="0" >
		<tr>
			<td width="30" align="right"><img src="<{$pager.url}>/images/main-h5-ico.gif" alt="" /></td>
			<th><{$MOD.title}></th>
			<td align="right"><{link ctl="company/company:so" load="mini:搜索"  class="button" title="搜索"}></td>
			<td width="15"></td>
		</tr>
	</table>
</div>
<div class="page-data">	
	<form id="items-form">
    <table width="100%" border="0" cellspacing="0" class="table-data table">
    <tr>
        <th class="w-100">ID</th><th>公司简称</th><th>所属会员</th>
        <th>联系人</th><th>电话</th><th>评分</th><th>保障金</th><th>认证</th><th>审核</th><th>排序</th><th class="w-150">操作</th></tr>
    <{foreach $items as $item}>
    <tr>
        <td><label><input type="checkbox" value="<{$item.company_id}>" name="company_id[]" CK="PRI"/><{$item.company_id}><label></td>
        <td><{$item.name}></td>
        <td>           
            <{if !empty($item.uid)}>
            <a ucard="@<{$item.uid}>"><{$member_list[$item.uid].uname}>（ID:<{$item.uid}>，金币数：<{$member_list[$item.uid].gold}>）</a>
            <{else}>
            等待认领
            <{/if}>
        </td> 
        <td><{$item.contact}></td><td><{$item.phone}></td><td><{$item.score}></td><td><{$item.xiaobao}></td>
        <td>
            <{if $item.is_vip}><b class="blue">旗舰</b>、<{/if}>
            <{if $item.verify_name}><b class="blue">实名</b>、<{/if}>
            <{if $item.xiaobao}><b class="blue">消保</b><{/if}>
        </td>
        <td><{if $item.audit}><b class="blue">正常</b><{else}><b class="red">待审</b><{/if}></td>
        <td><{$item.orderby}></td>
        <td class="right">
            <{if $item.uid}>
                <{link ctl="member/member:manager" args=$item.uid title="管理" class="button" target="member"}>
            <{else}>
                <label title="管理" class="button disabled" tips="未绑定用户" disabled="disabled">管理</label>
            <{/if}>
            <{if $czjb_show == 1}><{link ctl="member/member:gold" args=$item.uid title="充值金币" load="mini:充值金币" width="mini:500" class="button"}><{/if}>
            <{link ctl="block/item:push" arg0='company' arg1=$item.company_id title="推送" load="mini:推送装修公司" class="button"}>
            <{if empty($item.is_vip)}>
             <{link ctl="company/company:vip" act="mini:设为旗舰公司" args=$item.company_id title="设为旗舰公司" class="button"}>
             <{else}>
              <{link ctl="company/company:vip" act="mini:取消旗舰公司" args=$item.company_id title="取消旗舰公司" class="button"}>
             <{/if}>            
            <{link ctl="company/company:edit" args=$item.company_id title="修改" class="button"}>        
            <{link ctl="company/company:delete" args=$item.company_id act="mini:删除" confirm="mini:确定要删除吗？" title="删除" class="button"}>
        </td>
     </tr>
    <{foreachelse}>
     <tr><td colspan="20"><p class="text-align tip-notice">没有数据</p></td></tr>
    <{/foreach}>
    </table>
	</form>
	<div class="page-bar">
		<table>
			<tr>
			<td class="w-100"><label><input type="checkbox" CKA="PRI"/>&nbsp;&nbsp;全选</label></td>
			<td colspan="10" class="left">
                <{link ctl="company/company:delete" type="button" submit="mini:#items-form" confirm="mini:确定要批量删除选中的内容吗?" priv="hide" value="批量删除"}>
                <{link ctl="block/item:batch" args='company' type="button" load="mini:批量推荐装修公司" batch="mini:PRI" priv="hide" value="批量推荐"}>
                <{link ctl="company/company:auditup" type="button" submit="mini:#items-form" confirm="mini:确定要批量审核选中的内容吗?" priv="hide" value="批量审核"}>
            </td>
			<td class="page-list"><{$pager.pagebar}></td>
		</tr>
		</table>
	</div>
</div>
<{include file="fenzhan:common/footer.html"}>